package ooday01;
//汽车类
public class car {
    car(){

    }
    String brand;
    String color;
    double price;
    void start(){
        System.out.println(this.brand+"牌"+this.color+"色"+this.price+"元的车启动了......");
    }
    void run(){
        System.out.println(this.brand+"牌"+this.color+"色"+this.price+"元的车开始跑了......");
    }
    void stop(){
        System.out.println(this.brand+"牌"+this.color+"色"+this.price+"元的车停下了......");
    }
    car(String brand,String color,double price){
        this.brand=brand;
        this.color=color;
        this.price=price;

    }
}
